//
//  LoginView.m
//  eCam
//
//  Created by clover on 14-7-28.
//  Copyright (c) 2014年 clover. All rights reserved.
//

#import "UIDevice+TL.h"


@implementation UIDevice (WJ)
//调用私有方法实现
+ (void)setOrientation:(UIInterfaceOrientation)orientation {
    SEL selector = NSSelectorFromString(@"setOrientation:");
    NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[self instanceMethodSignatureForSelector:selector]];
    [invocation setSelector:selector];
    [invocation setTarget:[self currentDevice]];
    int val = orientation;
    [invocation setArgument:&val atIndex:2];
    [invocation invoke];
}
@end
